namespace MVCProject.Model
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    public partial class Users
    {
        [Key]
        public int userID { get; set; }

        [Required]
        [StringLength(50)]
        public string loginName { get; set; }

        [Required]
        [StringLength(32)]
        public string loginPwd { get; set; }

        [Required]
        [StringLength(50)]
        public string userName { get; set; }

        [Required]
        [StringLength(2)]
        public string sex { get; set; }

        [Column(TypeName = "date")]
        public DateTime birthday { get; set; }

        [Required]
        [StringLength(11)]
        public string phone { get; set; }

        public int imgID { get; set; }

        public int roleID { get; set; }

        public bool status { get; set; }

        public DateTime lastTime { get; set; }

        public virtual Images Images { get; set; }

        public virtual Roles Roles { get; set; }
    }
}
